package com.rds.workflow.service;

import com.rds.common.core.domain.AjaxResult;
import com.rds.workflow.domain.RdaWorkflowTempleteScope;

import java.util.List;

/**
 *流程模板应用范围Service接口
 *
 * @author rds
 * @date 2021-12-17
 */
public interface RdaWorkflowTempleteScopeService {

    /**
     * 查询流程模板应用范围
     *
     * @param id 流程模板应用范围id
     * @return 流程模板应用范围
     */
    public RdaWorkflowTempleteScope selectRdaWorkflowTempleteScopeById(Long id);


    public List<RdaWorkflowTempleteScope> selectRdaWorkflowTempleteScopeList(RdaWorkflowTempleteScope rdaWorkflowTempleteScope);

    public List<RdaWorkflowTempleteScope> selectRdaWorkflowTempleteScopeObject(Long objectTypeid,Long objectPolicyid,Long objectStateid);

    public int insertRdaWorkflowTempleteScope(RdaWorkflowTempleteScope rdaWorkflowTempleteScope);

    public int updateRdaWorkflowTempleteScope(RdaWorkflowTempleteScope rdaWorkflowTempleteScope);

    public int deleteRdaWorkflowTempleteScope(Long[] ids);

    public AjaxResult createWorkflowWithObject(Long objectTypeid, Long objectPolicyid, Long objectStateid, Long objectId, String objectModuleName, String objectName);

    public AjaxResult createWorkflowWithObject(Long objectTypeid, Long objectPolicyid, Long objectStateid,Long worfklowId,Long objectId,String objectModuleName,String objectName);

    public AjaxResult createWorkflowWithObject(Long objectTypeid, Long objectPolicyid, Long objectStateid, Long objectId, String objectModuleName, String objectName,Long deptId);

}
